Skip to content

chore(deps-dev): bump rubocop-capybara from 2.23.0 to 3.0.0#2681

Merged
mroderick merged 2 commits into
masterfrom
dependabot/bundler/rubocop-capybara-3.0.0
Jul 2, 2026
Merged

chore(deps-dev): bump rubocop-capybara from 2.23.0 to 3.0.0#2681
mroderick merged 2 commits into
masterfrom
dependabot/bundler/rubocop-capybara-3.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 2, 2026

Copy link
Copy Markdown
Contributor

Bumps rubocop-capybara from 2.23.0 to 3.0.0.

Release notes

Sourced from rubocop-capybara's releases.

RuboCop Capybara v3.0.0

  • Enable pending cops by default for the 3.0 release. (@​ydah)
  • Remove the deprecated Capybara/ClickLinkOrButtonStyle cop. (@​ydah)
  • Remove obsolete cop name migration config for the 2.x to 3.0 transition. (@​ydah)
Changelog

Sourced from rubocop-capybara's changelog.

3.0.0 (2026-06-22)

  • Enable pending cops by default for the 3.0 release. ([@​ydah])
  • Remove the deprecated Capybara/ClickLinkOrButtonStyle cop. ([@​ydah])
  • Remove obsolete cop name migration config for the 2.x to 3.0 transition. ([@​ydah])
Commits
  • a9b8f9a Merge pull request #177 from rubocop/v3.0.0
  • 6a4579d release v3.0.0
  • 75e7cda Merge pull request #176 from rubocop/docs/update-specific-matcher-readme
  • f02ff72 Update SpecificMatcher README example
  • ebe10e8 Merge pull request #174 from rubocop/enable-pending-capybara-cops
  • 20a5721 Enable pending Capybara cops
  • fee3774 Merge pull request #173 from rubocop/remove-obsolete-cop-name-migration
  • ea818bd Remove obsolete cop name migration config
  • 989fe3c Merge pull request #172 from rubocop/remove-click-link-or-button-style
  • 5d5a5b8 Merge pull request #175 from rubocop/dependabot/github_actions/actions/checko...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rubocop-capybara](https://github.com/rubocop/rubocop-capybara) from 2.23.0 to 3.0.0.
- [Release notes](https://github.com/rubocop/rubocop-capybara/releases)
- [Changelog](https://github.com/rubocop/rubocop-capybara/blob/main/CHANGELOG.md)
- [Commits](rubocop/rubocop-capybara@v2.23.0...v3.0.0)

---
updated-dependencies:
- dependency-name: rubocop-capybara
  dependency-version: 3.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies ruby Pull requests that update Ruby code labels Jul 2, 2026
@mroderick

Copy link
Copy Markdown
Collaborator

Dependency Upgrade Review: PR #2681

Dependency Old New Risk
rubocop-capybara 2.23.0 3.0.0 Medium

rubocop-capybara 3.0.0

Breaking changes

  • Enable pending cops by default — cops introduced in 2.x that were kept as Enabled: pending are now active. This may surface new linting offenses in existing code.
  • Remove deprecated Capybara/ClickLinkOrButtonStyle cop — replaced by Capybara/AmbiguousClick in 2.22.0

Notable new/enabled cops (may flag existing code)

  • Capybara/FindAllFirst — suggests find instead of all(...)[0]
  • Capybara/RedundantWithinFind — flags unnecessary within(find(...)) nesting
  • Capybara/RSpec/HaveSelector — prefers specific matchers over generic have_selector
  • Capybara/RSpec/NegationMatcherAfterVisit — enforces negation style after visit
  • Capybara/RSpec/PredicateMatcher — prefers predicate matchers over boolean methods

Usage in Repository

  • Listed as a RuboCop plugin in .rubocop.yml
  • Capybara is used extensively in feature specs (spec/features/):
    • 162 click_on / click_link / click_button calls
    • 338 have_content / have_text expectations
    • 10 page.current_path assertions (legacy style; may trigger Capybara/CurrentPathExpectation)
    • Multiple have_css with count: options

Compatibility Assessment: Likely Compatible

  • This is a dev-only dependency (linting/static analysis) — no runtime impact
  • Risk: CI does not run RuboCop, so newly enabled cops won't break CI. However, if developers run rubocop locally, they may see new offenses.
  • No deprecated Capybara/ClickLinkOrButtonStyle usage found in the codebase
  • The Capybara/CurrentPathExpectation cop may flag the ~10 page.current_path assertions, but these are all in specs and easily auto-correctable

Test Coverage

  • Capybara is exercised heavily in feature specs (Playwright-backed Capybara in CI)
  • RuboCop itself is not run in CI (see .github/workflows/ruby.yml), so new cop offenses won't block builds

Confidence: Medium

The upgrade itself is safe (dev-only), but the major version bump activates pending cops that may flag existing code locally. CI will not be affected.

Recommended action: Merge this PR, then consider enabling rubocop in CI or running rubocop -a to address any newly enabled cop offenses.

@mroderick mroderick left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — dev-only major version bump. Newly enabled cops may surface local linting offenses but CI is unaffected.

@mroderick mroderick merged commit f14ab30 into master Jul 2, 2026
9 checks passed
@mroderick mroderick deleted the dependabot/bundler/rubocop-capybara-3.0.0 branch July 2, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant